<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('合同未签订')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
    <th:block th:include="include :: select2-css"/>
</head>

<body class="gray-bg">
<div class="ui-layout-center">
    <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="user-form">
                    <div class="select-list">
                        <ul>
                            <li>
                                姓名：<input type="text" name="name"/>
                            </li>
                            <li>
                                工号：<input type="text" name="badge"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">

            </div>

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
</div>

<th:block th:include="include :: footer"/>
<th:block th:include="include :: layout-latest-js"/>
<th:block th:include="include :: ztree-js"/>

<script th:inline="javascript">
    var prefix = ctx + "empInfo/Remind";
    $(function () {
        var panehHidden = false;
        if ($(this).width() < 800) {
            panehHidden = true;
        }
        $('body').layout({initClosed: panehHidden, west__size: 350});
        queryData();
    });

    function queryData() {
        var columns = [];
        var checkbox = {checkbox: true};
        var badge = {field: 'badge', title: '工号'};
        var name = {field: 'name', title: '姓名'};
        var eName = {field: 'eName', title: '英文名'};
        var compName = {field: 'compName', title: '公司名称'};
        var depName = {field: 'depName', title: '部门名称'};
        var jobName = {field: 'jobName', title: '工作岗位'};
        var ReportToName = {field: 'ReportToName', title: '行政上级'};
        var WFReportToName = {field: 'WFReportToName', title: '职能上级'};
        var empStatusTitle = {field: 'empStatusTitle', title: '员工状态'};
        var JobStatusTitle = {field: 'JobStatusTitle', title: '在岗状态'};
        var EmpTypeTitle = {field: 'EmpTypeTitle', title: '员工类型'};
        var WorkCityTitle = {field: 'WorkCityTitle', title: '工作城市'};
        var JoinTypeTitle = {field: 'JoinTypeTitle', title: '入职类型'};
        var JoinDate = {field: 'JoinDate', title: '入职日期'};
        var CyearAdjust = {field: 'CyearAdjust', title: '司龄调整'};
        var Cyear = {field: 'Cyear', title: '司龄'};
        var JobBeginDate = {field: 'JobBeginDate', title: '从岗日期'};
        var Jyear = {field: 'Jyear', title: '岗龄'};
        var WorkBeginDate = {field: 'WorkBeginDate', title: '开始工作日期'};
        var WyearAdjust = {field: 'WyearAdjust', title: '工龄调整'};
        var WorkYears = {field: 'WorkYears', title: '工龄'};
        var PracBeginDate = {field: 'PracBeginDate', title: '实习开始日期'};
        var PracTerm = {field: 'PracTerm', title: '实习期'};
        var PracEndDate = {field: 'PracEndDate', title: '实习结束日期'};
        var ProbBeginDate = {field: 'ProbBeginDate', title: '试用开始日期'};
        var ProbTerm = {field: 'ProbTerm', title: '试用期'};
        var ProbEndDate = {field: 'ProbEndDate', title: '试用结束日期'};
        var ConCount = {field: 'ConCount', title: '合同次数'};
        var Contract = {field: 'Contract', title: '合同签约单位'};
        var ConTypeTitle = {field: 'ConTypeTitle', title: '合同类型'};
        var ConNo = {field: 'ConNo', title: '合同编号'};
        var ConPropertyTitle = {field: 'ConPropertyTitle', title: '合同属性'};
        var ConBeginDate = {field: 'ConBeginDate', title: '合同开始日期'};
        var ConTerm = {field: 'ConTerm', title: '合同期'};
        var ConEndDate = {field: 'ConEndDate', title: '合同结束日期'};

        columns.push(checkbox, badge,name,eName,compName,depName,jobName,ReportToName,WFReportToName,empStatusTitle);
        columns.push(JobStatusTitle,EmpTypeTitle,WorkCityTitle,JoinTypeTitle,JoinDate,CyearAdjust,Cyear,JobBeginDate);
        columns.push(Jyear,WorkBeginDate,WyearAdjust,WorkYears,PracBeginDate,PracTerm,PracEndDate,ProbBeginDate);
        columns.push(ProbTerm,ProbEndDate,ConCount,Contract,ConTypeTitle,ConNo,ConPropertyTitle,ConBeginDate);
        columns.push(ConTerm,ConEndDate);


        var options = {
            code: "eid",
            uniqueId: "eid",
            url: prefix + "/contractNotSignedList",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            detailUrl: prefix + "/detail/{id}",
            escape: true,
            showPageGo: true,
            pagination :false,
            rememberSelected: true,
            height: $(window).height() - 120,
            sortOrder: "desc",
            modalName: "合同未签订",
            columns: columns
        };
        $.table.init(options);
    }

</script>
</body>
</html>